Optimal. Leaf size=208 \[ -\frac {\left (8 a^2-24 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{8 \sqrt {a} f}+\frac {\left (8 a^2-24 a b+3 b^2\right ) \sqrt {a+b \sin ^2(e+f x)}}{8 a f}+\frac {\left (8 a^2-24 a b+3 b^2\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 208, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {3273, 91, 79,
52, 65, 214} \begin {gather*} \frac {\left (8 a^2-24 a b+3 b^2\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {\left (8 a^2-24 a b+3 b^2\right ) \sqrt {a+b \sin ^2(e+f x)}}{8 a f}-\frac {\left (8 a^2-24 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{8 \sqrt {a} f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 79
Rule 91
Rule 214
Rule 3273
Rubi steps
\begin {align*} \int \cot ^5(e+f x) \left (a+b \sin ^2(e+f x)\right )^{3/2} \, dx &=\frac {\text {Subst}\left (\int \frac {(1-x)^2 (a+b x)^{3/2}}{x^3} \, dx,x,\sin ^2(e+f x)\right )}{2 f}\\ &=-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}+\frac {\text {Subst}\left (\int \frac {\left (\frac {1}{2} (-8 a+b)+2 a x\right ) (a+b x)^{3/2}}{x^2} \, dx,x,\sin ^2(e+f x)\right )}{4 a f}\\ &=\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}+\frac {\left (2 a^2+\frac {3}{4} b (-8 a+b)\right ) \text {Subst}\left (\int \frac {(a+b x)^{3/2}}{x} \, dx,x,\sin ^2(e+f x)\right )}{4 a^2 f}\\ &=\frac {\left (8 a^2-3 (8 a-b) b\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}+\frac {\left (2 a^2+\frac {3}{4} b (-8 a+b)\right ) \text {Subst}\left (\int \frac {\sqrt {a+b x}}{x} \, dx,x,\sin ^2(e+f x)\right )}{4 a f}\\ &=\frac {\left (8 a^2-3 (8 a-b) b\right ) \sqrt {a+b \sin ^2(e+f x)}}{8 a f}+\frac {\left (8 a^2-3 (8 a-b) b\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}+\frac {\left (2 a^2+\frac {3}{4} b (-8 a+b)\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\sin ^2(e+f x)\right )}{4 f}\\ &=\frac {\left (8 a^2-3 (8 a-b) b\right ) \sqrt {a+b \sin ^2(e+f x)}}{8 a f}+\frac {\left (8 a^2-3 (8 a-b) b\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}+\frac {\left (2 a^2+\frac {3}{4} b (-8 a+b)\right ) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \sin ^2(e+f x)}\right )}{2 b f}\\ &=-\frac {\left (8 a^2-3 (8 a-b) b\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{8 \sqrt {a} f}+\frac {\left (8 a^2-3 (8 a-b) b\right ) \sqrt {a+b \sin ^2(e+f x)}}{8 a f}+\frac {\left (8 a^2-3 (8 a-b) b\right ) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{24 a^2 f}+\frac {(8 a-b) \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{8 a^2 f}-\frac {\csc ^4(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{4 a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.56, size = 123, normalized size = 0.59 \begin {gather*} \frac {-3 \left (8 a^2-24 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )+\sqrt {a} \sqrt {a+b \sin ^2(e+f x)} \left (3 (8 a-5 b) \csc ^2(e+f x)-6 a \csc ^4(e+f x)+8 \left (4 a-6 b+b \sin ^2(e+f x)\right )\right )}{24 \sqrt {a} f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 12.80, size = 257, normalized size = 1.24
method | result | size |
default | \(\frac {\frac {b \left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{3}+\frac {4 a \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{3}-2 b \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}+\frac {a \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )^{2}}+3 \sqrt {a}\, b \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )}\right )-\frac {5 b \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{8 \sin \left (f x +e \right )^{2}}-\frac {3 b^{2} \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )}\right )}{8 \sqrt {a}}-a^{\frac {3}{2}} \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )}\right )-\frac {a \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{4 \sin \left (f x +e \right )^{4}}}{f}\) | \(257\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 287, normalized size = 1.38 \begin {gather*} -\frac {24 \, a^{\frac {3}{2}} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | \sin \left (f x + e\right ) \right |}}\right ) - 72 \, \sqrt {a} b \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | \sin \left (f x + e\right ) \right |}}\right ) + \frac {9 \, b^{2} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | \sin \left (f x + e\right ) \right |}}\right )}{\sqrt {a}} - 8 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} - 24 \, \sqrt {b \sin \left (f x + e\right )^{2} + a} a + 72 \, \sqrt {b \sin \left (f x + e\right )^{2} + a} b + \frac {24 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} b}{a} - \frac {3 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} b^{2}}{a^{2}} - \frac {9 \, \sqrt {b \sin \left (f x + e\right )^{2} + a} b^{2}}{a} - \frac {24 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {5}{2}}}{a \sin \left (f x + e\right )^{2}} + \frac {3 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {5}{2}} b}{a^{2} \sin \left (f x + e\right )^{2}} + \frac {6 \, {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {5}{2}}}{a \sin \left (f x + e\right )^{4}}}{24 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.36, size = 442, normalized size = 2.12 \begin {gather*} \left [\frac {3 \, {\left ({\left (8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \sqrt {a} \log \left (\frac {2 \, {\left (b \cos \left (f x + e\right )^{2} + 2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {a} - 2 \, a - b\right )}}{\cos \left (f x + e\right )^{2} - 1}\right ) - 2 \, {\left (8 \, a b \cos \left (f x + e\right )^{6} - 8 \, {\left (4 \, a^{2} - 3 \, a b\right )} \cos \left (f x + e\right )^{4} + {\left (88 \, a^{2} - 87 \, a b\right )} \cos \left (f x + e\right )^{2} - 50 \, a^{2} + 55 \, a b\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{48 \, {\left (a f \cos \left (f x + e\right )^{4} - 2 \, a f \cos \left (f x + e\right )^{2} + a f\right )}}, \frac {3 \, {\left ({\left (8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 8 \, a^{2} - 24 \, a b + 3 \, b^{2}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {-a}}{a}\right ) - {\left (8 \, a b \cos \left (f x + e\right )^{6} - 8 \, {\left (4 \, a^{2} - 3 \, a b\right )} \cos \left (f x + e\right )^{4} + {\left (88 \, a^{2} - 87 \, a b\right )} \cos \left (f x + e\right )^{2} - 50 \, a^{2} + 55 \, a b\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{24 \, {\left (a f \cos \left (f x + e\right )^{4} - 2 \, a f \cos \left (f x + e\right )^{2} + a f\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\mathrm {cot}\left (e+f\,x\right )}^5\,{\left (b\,{\sin \left (e+f\,x\right )}^2+a\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________